#include <iostream>
#include <fstream>
#include <string.h>
#include  <vector>

#include <cstdlib> // for exit function
#include <boost/algorithm/string.hpp>
#include <boost/lexical_cast.hpp>
#include <boost/format.hpp>
using std::cerr;
using std::cout;
using std::endl;
using std::ifstream;
using namespace std;
using namespace  boost;

// This program reads values from the file 'example.dat'
// and echoes them to the display until a negative value
// is read.
int main() {

	ifstream indata("matrix.tsv"); // indata is like cin
	if (!indata) { // file couldn't be opened
		cerr << "Error: file could not be opened" << endl;
		exit(1);
	}
	string line;
	vector<string> tokens;
	if (!indata.eof()) { // keep reading until end-of-file
		getline(indata, line);
		cerr << line<< endl;
		line = "";
		getline(indata, line);
		//cerr << line<< endl;
		/*trim(line);
		boost::split(tokens, line, boost::is_any_of("\t"));
		cerr << "#words: " << tokens.size()<< endl;
		for (int i = 0; i < 10; i++) {
			cerr << tokens.at(i) << endl;
		}*/
	}
		return 0;
}
